<template>
    <div>
        <div class="crumbs" v-show="fromType==1">
            <el-breadcrumb separator="/">
                <el-breadcrumb-item><i class="el-icon-lx-calendar"></i>平台管理</el-breadcrumb-item>
                <el-breadcrumb-item>相册管理</el-breadcrumb-item>
            </el-breadcrumb>
        </div>

		<div class="container">
			<el-tabs v-model="activeName" type="card">
				<el-tab-pane label="图片列表" name="list">
					<albumPic v-if="activeName=='list'"></albumPic>
				</el-tab-pane>
				<el-tab-pane label="相册分类" name="class">
					<albumClass v-if="activeName=='class'"></albumClass>
				</el-tab-pane>
			</el-tabs>
		</div>
	</div>
</template>

<script type="text/javascript">
	import albumPic from '@/page/common/album/album_pic';
	import albumClass from '@/page/common/album/album_class';
	export default{
        props:{
            fromType:{type:Number,default:1}, //1来源路由 2来源组件
        },
		components:{albumPic,albumClass},
		data() {
			return {
				activeName: 'list',
			}
		},
		created() {
		},
		methods: {
		}
	}
</script>

<style>
</style>
